<!doctype html>
<html>
<head>

<meta charset="utf-8">
<meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<title>无标题文档</title>
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <#include "public/app/mxcss.ftl">
    <script src="/jquery-2.2.3.min.js"></script>
</head>

<body>
<article class="hometop"><a href="javascript:history.back(-1);" class="left"><img src="../images/arrow-left.png"></a> <span>修改登录密码</span> </article>
<article class="usercenter">
    <section class="two">
    	<p>请输入原登录密码</p>
        <section class="userlist">
            <ul>
                <li>
                    <ul>
                        <li class="fl"><input type="text" id="checkPassword" placeholder="原登录密码"></li>
                        <#if Session.user??>
                            <input type="hidden" id="oldPassword" value="${Session.user.password?if_exists}">
                        </#if>
                        <li class="fr">

                        </li>
                    </ul>
                </li>
			</ul>
		</section>
<#--        <aside class="ml22 mr22 mb22 mt22"> <a href='javascript:void(0)' onclick='checkPassword()' class="btn btn-orange">下一步</a> </aside>-->
        <aside class="ml22 mr22 mb22 mt22"> <a href="javascript:checkPassword()" class="btn btn-orange">下一步</a> </aside>

    </section>
</article>
<script>
    function checkPassword(){
        var oldPassword = $("#oldPassword").val();
        var checkPassword = $("#checkPassword").val();
        if(checkPassword == ""){
            alert("请输入原密码");
            return ;
        }
        if(oldPassword == checkPassword){
            location.href = "/securitycenter/changelogpasswordsec"
        }else{
            alert("输入的密码不正确");
        }
    }
</script>
</body>
</html>